package com.wocao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wocao.entity.ZyBuilding;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 楼栋  服务类
 *
 * @since 2023-11-29
 */
public interface ZyBuildingService extends IService<ZyBuilding> {


    /**
     * 根据楼栋名称和楼栋编码模糊查询所有楼栋信息
     *
     * @return
     */
    Page<ZyBuilding> getBuildingsByLike(Page<ZyBuilding> zyBuildingPage, String buildingName, String buildingCode, String communityId);

    /**
     * 导出
     *
     * @param response
     * @param buildingIds
     * @throws IOException
     */
    void export(HttpServletResponse response, String[] buildingIds) throws IOException;


    List<ZyBuilding> getBuildingsByComId(String communityId);

}
